package jnote;

import java.awt.Color;
import javax.swing.JColorChooser;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

public class ColorChooser extends JColorChooser {
    private Color c;
    
    ColorChooser() {
        c = ColorChooser.showDialog(null, "Color Chooser", Color.black);        
        try {
            UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
        } catch(UnsupportedLookAndFeelException | ClassNotFoundException | 
                InstantiationException | IllegalAccessException e) {
        }
    }

    public Color returnColor() {
        return c;
    }
}
